import hashlib
from s25 import settings


def md5_str(string):
    """MD5加密"""
    hash_object = hashlib.md5(settings.SECRET_KEY.encode('utf-8'))
    hash_object.update(string.encode('utf-8'))
    return hash_object.hexdigest()

a = md5_str("00000000")
print(a)